﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Mate.Dto.System
{
    public class NavModel
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string href { get; set; }
        /// <summary>
        /// 是否展开
        /// </summary>
        public bool spread { get; set; }

        private IList<NavModel> _children;
        /// <summary>
        /// 子菜单
        /// </summary>
        public IList<NavModel> children
        {
            get { return _children ?? (_children = new List<NavModel>()); }
            set { _children = value; }
        }

    }
}
